<?php
/**
 * Created by .
 * User: luogan
 * Date: 2022/1/14
 */

namespace app\model;

use hg\apidoc\annotation\Field;
class AuthRoleModel extends BaseModel
{
    protected $table = 'api_auth_role';
    protected $pk = 'id';
    protected $autoWriteTimestamp=true;
    protected $hidden=['delete_time'];


    /**
     * 获取角色详情
     * @Field("id,name,description,rules,status,create_time,update_time")
     */
    public function getRole(){}

    /**
     * 获取角色列表
     * @Field("id,name,description,rules,status,create_time,update_time")
     */
    public function getList($data){ return $data;}
}
